<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Resultados</title>
</head>
<body>
	<c:if test="${sessionScope.cars != null}">
		<table>
		<tr>
			<td>MODELO</td><td>ANO FABRICACAO.</td><td>ANO MODELO</td>
			<td>COR</td><td>COMBUSTIVEL</td><td>VALOR</td>
			<td>DETALHES</a></td>
		</tr>
	</c:if>
	<c:forEach var="car" items="${sessionScope.cars}">
		<tr>
			<td>${car.modelo}</td><td>${car.anoFabricacao}</td><td>${car.anoModelo}</td>
			<td>${car.cor}</td><td>${car.combustivel}</td><td>${car.valor}</td>
			<td><a href="${car.url}" target="_blank">Visualizar</a></td>
		</tr>
	</c:forEach>
	<c:if test="${sessionScope.cars != null}">
		</table>
	</c:if>
</body>
</html>